package com.wfcm.dao;

import java.util.List;
import java.util.Map;

import com.wfcm.entity.WfGoodsOrderEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 订单表管理
 * 
 * @author xlf
 * @email xlfbe696@gmail.com
 * @date 2018-01-22 18:57:19
 */
public interface WfGoodsOrderDao extends BaseDao<WfGoodsOrderEntity> {
	
	//获取待付款个数
	int queryNoPay(Map<String, Object> map);
	//获取已完成个数
	int queryAlreadyPay(Map<String, Object> map);
	//根据userid获取已完成订单数组
	List<WfGoodsOrderEntity>  queryByUserId(Integer uid);
	//根据订单号获取相关订单
	WfGoodsOrderEntity  queryByOrderCode(String uid);

	WfGoodsOrderEntity queryByCollageId(Map<String, Object> map);

	//查我的订单 -（订单-订单商品关系）
	List<WfGoodsOrderEntity>  queryMyOrder(Map<String, Object> map);
	
	WfGoodsOrderEntity queryByTransactionId(String transactionId);
	
	WfGoodsOrderEntity queryOrderUser(String orderCode);

	Integer queryAlreadyPayByUserId(@Param("userId") Integer userId);
}
